
main()
{
	int v[35] = {2, 5, 29, 3, 26, 21, 14, 10, 9, 1, 30, 17, 22, 25, 4,
		     27, 8, 19, 6, 16, 18, 7, 11, 12, 20, 23, 15, 13, 28, 24,
		     5, 10, 15, 20, 25};

	int n = 35;
	int gap, i, j, t;

	for (i = n - 1; i >= 0; i--) {
		for (j = 1; j <= i; j++) {
			if (v[j-1] > v[j]) {
				t = v[j-1];
				v[j-1] = v[j];
				v[j] = t;
			}
		}
	}

	printf("\n");
	for (i = 0 ; i < n; i++)
		printf("%d ", v[i]);
	printf("\n");
}
